//! 测试环境变量包std::env

use std::env;

pub fn test() {
    // let home_path = env::home_dir();
    // match home_path {
    //     Some(p) => println!("{:?}", p),
    //     None => println!("Can not find the home directory!"),
    // }

    let key = "PATH";
    match env::var(key) {
        Ok(v) => println!("{}", v),
        Err(e) => println!("{}", e),
    }

    let x: Option<&str> = Some("Hello, world!");
    assert_eq!(x.is_some(), true);
}